/**
 * 
 */
package com.googlecode.xcarve.object;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author xinyun.du
 *
 */
public class Demo implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id = 1;
	private String name = "demo";
	private Long taskId = 16L;
	private BigDecimal money = new BigDecimal(30);
	private long time;

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the taskId
	 */
	public Long getTaskId() {
		return taskId;
	}

	/**
	 * @param taskId
	 *            the taskId to set
	 */
	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	/**
	 * @return the money
	 */
	public BigDecimal getMoney() {
		return money;
	}

	/**
	 * @param money
	 *            the money to set
	 */
	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	/**
	 * @return the time
	 */
	public long getTime() {
		return time;
	}

	/**
	 * @param time the time to set
	 */
	public void setTime(long time) {
		this.time = time;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "[ id="+this.id+",name="+this.name+",taskId="+this.taskId+",money="+this.money+",date="+this.time +"]";
	}
}
